from django.db import models


# Create your models here.

class UserInfo(models.Model):
    name = models.CharField(max_length=32)
    password = models.CharField(max_length=64)
    age = models.IntegerField(null=True, blank=True)
    # 注意新增列时，原始表中可能已经有数据了，需要注意设置默认值，或者设置值


class Department(models.Model):
    title = models.CharField(max_length=16)


# Department.objects.create(title="销售部")
